import type { App } from 'vue';

import { carbonIconComponents, svgIconComponents } from '@/plugins/icons';

export default function installPlugin(app: App) {
  // icon
  for (const iconComponent of svgIconComponents) {
    app.component(iconComponent.name, iconComponent.component);
  }
  for (const iconComponent of carbonIconComponents) {
    app.component(iconComponent.name, iconComponent.component);
  }
}
